$f: 19.2;

.home {
  position: relative;
  width: 100%;
  
  .banner {
    position: relative;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }

    .text {
      position: absolute;
      left: 260/$f+vw;
      bottom: 80/$f+vw;
      z-index: 10;
      color: white;

      .p1 {
        font-size: 18/$f+vw;
        font-style: italic;
        text-transform: uppercase;
        line-height: 1;
      }

      .p2 {
        margin-top: 18/$f+vw;
        font-size: 25/$f+vw;
        font-weight: bold;
        border-bottom: 3/$f+vw solid white;
        padding-bottom: 8/$f+vw;
      }
    }
  }

  .page_link {
    background: rgba(232, 237, 243, 1);
    padding: 12/$f+vw 259/$f+vw;
    display: flex;
    align-items: center;

    a,
    span,
    p {
      color: #A3A3A3;
      font-size: 14/$f+vw;
    }

    a {
      transition: all 600ms;

      &:hover {
        color: #000;
      }
    }

    span {
      margin: 0 5/$f+vw;
    }
  }

  .container {
    margin: 34/$f+vw 260/$f+vw 60/$f+vw 260/$f+vw;
    display: flex;
    justify-content: space-between;

    .lbox {
      width: 225/$f+vw;

      .wrap {
        .title {
          width: 100%;
          height: 91/$f+vw;
          background: url(../images/nav_bg.png) no-repeat;
          background-size: cover;
          display: flex;
          align-items: center;
          justify-content: center;

          p {
            color: #FFFFFF;
            font-size: 20/$f+vw;
            font-weight: bold;
            padding-bottom: 6/$f+vw;
            position: relative;

            &::after {
              content: '';
              display: block;
              width: 20px;
              height: 2px;
              background: white;
              position: absolute;
              left: 50%;
              bottom: 0;
              transform: translateX(-50%);
            }
          }
        }

        .nav_menu {
          background: #FFFFFF;
          box-shadow: 0px 1px 6px 0px rgba(5, 13, 9, 0.2);
          padding-top: 10/$f+vw;

          a {
            display: flex;
            justify-content: space-between;
            padding: 17/$f+vw 11/$f+vw;
            border-bottom: 2px solid rgba(0, 0, 0, .2);
            color: #1E1E1E;
            font-size: 18/$f+vw;
            align-items: center;
            margin: 0 17/$f+vw;
            transition: all 600ms;

            &:last-child {
              border-bottom: none;
            }

            img {
              width: 7/$f+vw;
              display: block;
              transition: all 600ms;
              filter: invert(100%);
            }
            &:hover{
              background: #1F4B86;
              color: white;
              margin: 0;
              width: 105%;
              padding-left: 45/$f+vw;
              padding-right: 27/$f+vw;
  
              img {
                filter: invert(0);
              }
            }
          }

          .on {
            background: #1F4B86;
            color: white;
            margin: 0;
            width: 105%;
            padding-left: 45/$f+vw;
            padding-right: 27/$f+vw;

            img {
              filter: invert(0);
            }
          }
        }
      }
    }

    .rbox {
      width: 1108/$f+vw;

      .title {
        border-bottom: 2px solid rgba(0, 0, 0, .2);
        display: flex;
        align-items: center;
        color: #1F4B86;
        font-size: 20/$f+vw;
        font-weight: bold;
        padding-bottom: 12/$f+vw;

        &::before {
          content: '';
          display: block;
          width: 4/$f+vw;
          height: 27px;
          background: #1F4B86;
          margin-right: 17/$f+vw;
        }
      }

      .html {
        margin: 33/$f+vw 20/$f+vw;
        color: #2B2B2B;
        font-size: 16/$f+vw;
        line-height: 2;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    .banner {
      img {
        height: 200px;
      }

      .text {
        left: 5%;
        bottom: 10%;

        .p1 {
          font-size: 16px;
        }

        .p2 {
          font-size: 20px;
          padding-bottom: 10px;
          border-bottom: 3px solid white;
        }
      }
    }

    .page_link {
      padding: 10px 5%;

      a,
      span,p {
        font-size: 14px;
      }

      span {
        margin: 0 5px;
      }
    }

    .container {
      margin: 30px 5%;
      flex-direction: column;

      .lbox {
        width: 100%;

        .wrap {
          .title {
            height: 80px;

            p {
              font-size: 18px;
              padding-bottom: 10px
            }
          }
          .nav_menu{
            padding-top: 5px;
            a{
              padding: 15px;
              margin: 0 15px;
              font-size: 16px;
              img{
                width: 6px;
              }
              &:hover{
                width: 100%;
                padding-left: 45px;
                padding-right: 30px;
              }
            }
            .on{
              width: 100%;
              padding-left: 45px;
              padding-right: 30px;
            }
          }
        }
      }

      .rbox {
        width: 100%;
        margin-top: 30px;
        .title {
          font-size: 18px;
          padding-bottom: 10px;
          &::before {
            width: 2px;
            margin-right: 10px;
          }
        }

        .html {
          margin: 20px 10px;
          font-size: 16px;
        }
      }
    }
  }
}